#include <iostream>
#include<string>
using namespace std;

int main()
{
    string str;
    cin >> str;
    for (auto& s : str)
    {
        if (s % 2 == 0)
            s = '0';
        else
            s = '1';
    }
    cout << stoi(str) << endl;
    return 0;
}